﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IList<AvansRS.Domain.Event>>" %>
<%@ Import Namespace="AvansRS.Domain" %>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%= Html.Encode(ViewData["Message"])  %></h2>
    <p>        
    <b>Evenementen waarvoor jeje kan inschrijven: </b>       
    
    <table>
        <tr>           
            <th>
                Naam
            </th>
            <th>
                Beschrijving
            </th>
            <th></th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>           
            <td>
                <%= Html.Encode(item.Name) %>
            </td>
            <td>
                <%= Html.Encode(item.Description) %>
            </td>            
             <td>
                <%=Html.ActionLink("Inschrijven", "EventDates", "Register", new { ID = item.ID}, null) %>
            </td>
        </tr>    
    <% } %>

    </table>    
    </p>
</asp:Content>
